Repository navigation
Arabic glossary: search without vowel marks, one letter for alef, and letters that work - #1160
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
👍 All image files/references (if any) are in webp format, in line with our policy. |
📝 Spell Check ResultsFound 1 potential spelling issue(s) when checking 12 changed file(s): 📄
|
| Line | Issue |
|---|---|
| 8 | passt ==> past, passed |
ℹ️ How to address these issues:
- Fix the typo: If it's a genuine typo, please correct it.
- Add to whitelist: If it's a valid word (e.g., a name, technical term), add it to
.codespell-ignore.txt - False positive: If this is a false positive, please report it in the PR comments.
🤖 This check was performed by codespell
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
All reported issues were addressed across 1 file (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…immed; 44 px on phones; ة and ى fold in search Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…etters Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
All reported issues were addressed across 2 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
…hat clear the toolbar without JavaScript Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In the Arabic glossary, visitors now find a term by typing it as it is usually typed, without vowel marks. Before, "التشابك" found nothing, because the term is stored as "التَّشابك". The hub search and the "filter terms" box beside each term both ignore vowel marks and the tatweel on both sides now, and they treat an alef with a hamza, madda or wasla (أ إ آ ٱ) as a plain alef. The hamza on ئ and ؤ stays.
The hub's letter bar also had three alef buttons (أ, إ, ا) that all jumped to the first of them.
urlizedrops the hamza, so their three sections shared one anchor. Arabic now files them under one letter, ا, as its dictionaries do.The letter bar's Arabic letters also never responded to a search, and never showed which letter was on screen.
urlizepercent-encoded the letter in the section's id, and the link encoded it a second time, sosite.jsnever found the link for a section. Every letter now gets a plain ASCII anchor:#letter-afor a Latin letter, as before, and#letter-n12(its position) for any other script. With a search that matches nothing, all 34 Arabic-hub letters now dim and leave the Tab order; before, the 21 Arabic letters stayed active and led to hidden sections. On phones the letter buttons are 44 px, in every glossary language.Search also counts a final ة as ه and ى as ي, as people often type them.
A letter's heading also no longer lands behind the sticky search and letters. The scroll offset was fixed (150 px on phones, 200 px otherwise), but the toolbar is 218 px tall on a phone, and 223 px on the Arabic hub at 1440 px, where its 34 letters wrap.
site.jsnow sets the offset from the toolbar's actual height, in every glossary language. Checked in Arabic, English and Chinese at 390, 761 and 1440 px: each heading lands 12 px below the toolbar.Tapping a letter on the Arabic hub, 390 px (before, the heading is under the toolbar)
Before:

After:

The same, 1440 px
Before:

After:

assets/js/doors/site.js: onefoldTermfor both glossary filters (vowel marks U+064B–U+0652, the dagger alef and the tatweel). Latin accents are left as they were.layouts/glossary/list.html: the Arabic first letter folds أ, إ, آ and ٱ into ا.At 390 px, the hub, searching "التشابك"
Before:

After:

At 1440 px
Before:

After:

The Arabic hub's letter bar with a search that matches nothing, 390 px (before, the Arabic letters stay active)
Before:

After:

The same, 1440 px
Before:

After:

The letter bar, 390 px
Before:

After:

The letter bar, 1440 px
Before:

After:

The count line in these crops is still English ("of 260 terms 1"); #1159 puts it in Arabic.
Found by the GPT reviewer in the hillclimb round's glossary check (the letter bar's anchors by the Claude reviewer in round 2) (DESIGN.md §4: search on long lists).
Decisions to review
#letter-n12), so they change if a letter is added before them. Latin anchors are unchanged.Checks
python3 scripts/check_seo_html.py <build>: passed.python3 -m unittest discover -s scripts/tests: 145 tests passed.🤖 Generated with Claude Code